package org.jsbd.boss.dao.impl;

import org.jsbd.boss.dao.IWeiboBrushConfigDAO;
import org.jsbd.boss.domian.weibo.WeiboBrushConfig;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @desc
 * @Date 2018/6/11 10:11
 * @Author xupengcheng [xupengcheng@zhexinit.com]
 */

@Service
public class WeiboBrushConfigDAOImpl extends CrackBaseDao implements IWeiboBrushConfigDAO {



    @Override
    public int deleteConfig(WeiboBrushConfig record) {
        return super.delete("weibo_brush_config.DELETE_BRUSH_CONFIG", record);
    }

    @Override
    public void insert(WeiboBrushConfig record) {
        super.insert("weibo_brush_config.INSERT_BRUSH_CONFIG", record);
    }

    @Override
    public WeiboBrushConfig selectConfig(WeiboBrushConfig record) {
        return (WeiboBrushConfig) super.queryForObject("weibo_brush_config.SELECT_CONFIG", record);
    }

    @Override
    public List<WeiboBrushConfig> selectConfigList(WeiboBrushConfig record) {
        return super.queryForList("weibo_brush_config.SELECT_LIST", record);
    }

    @Override
    public int updateRecord(WeiboBrushConfig record) {
        return super.update("weibo_brush_config.UPDATE_BRUSH_CONFIG", record);
    }

    @Override
    public int countRecord(WeiboBrushConfig record) {
        return super.queryForCount("weibo_brush_config.COUNT_BRUSH_LIST", record);
    }
}
